// Connect voltage 0...5 V to port A, pin 1
#include "../../ACUAS/ACUAS.h"

PROGRAM_INIT
	VAR(d8bit)				// define a 8 bit variable with the name d8bit
	ACTIVATE_ADC			// activate the analg digital converter
	ADC_CHANNEL(1)			// select channel 1 (port A, pin 0) as input

PROGRAM_START
	ADCONVERTlow(d8bit) 	// Convert the analog voltage at channel 1 and store the digital value in variable d8bit
	DISPLAY_LEDS(d8bit)		// display the binary value of the variable d8bit with the 8 LEDs

PROGRAM_END
